package com.sinovatech.ologger.util;

public class StringTypeUtil {

	/**
	 * 根据传来的字符串，将其转化为'x','x'的格式
	 * @param needStr
	 * @param join
	 * @return
	 */
	public static String getStringType(String needStr, String join) {
		String[] split = needStr.split(join);
		StringBuffer result = new StringBuffer();
		for (int i = 0; i < split.length; i++) {
			result.append(join).append("'").append(split[i]).append("'");
		}
		return result.toString().substring(1);
	}

}
